import { defineStore } from 'pinia';
import { getLoginInfo } from '@/Api/pc';

const useUserStore = defineStore('userStore', {
  state() {
    return {
      userInfo: {},
    };
  },

  actions: {
    async changeInfo() {
      await getLoginInfo().then((res) => {
        this.userInfo = res.obj;
      });
    },
  },
});

export default useUserStore;
